RawBitmap Buoy package.

RawBitmap.Pixel Method

Gets the color of a pixel in the RawBitmap.

Pixel(
   x as Integer,
   y as Integer) as Color

Parameters

x
The x coordinate to set or get (zero based)
y
The y coordinate to set or get (zero based)

Returns

Color
The color value at the requested location

Remarks

Note that x and y are not bounds checked for performance reasons so if you go out of bounds then you will get a crash.

Note even if this class has the a few drawing methods then it is not a Graphics context and never will be. The few drawing commands are more of to help make debugging easier.

When used with color space CMYK then the fill color is no longer RGB but CMYK, and is passed in like &cFFFFFFFF, where first 2 hex letters are C, 2nd 2 are M, next pair is Y and last pair is Key.

This method does nothing on 16bit per channel bitmaps.

See Also

RawBitmap Class